<template>
  <view>
    <rich-text :nodes="data.data" userSelect selectable preview></rich-text>
  </view>
</template>

<script  >
import {ref} from 'vue';
 import Taro from "@tarojs/taro";
import {IconFont} from "@nutui/icons-vue";
import {twCarouselDetail} from "../../../api/login";

const data = ref({})

const getCarouselDetail = (id) => {
  twCarouselDetail({id}).then(res=>{
    if (200 == res.code) {
      data.value = res.data
    }
  })
}
export default {
  components: {IconFont},

  // 可以使用所有的 Vue 生命周期方法
  mounted() {
  },

  onLoad(options) {
    getCarouselDetail(options.id)
  },

  onReady() {
  },

  onShow() {

  },

  onHide() {
  },

  onPullDownRefresh() {
    console.log("onPullDownRefresh")
   },
  onReachBottom() {
    console.log("onReachBottom")

  },


  setup() {


    return {
      Taro,
      data


    }
  }

}

</script>

<style>

</style>